package cn.lanca.gof6_10._07adapter.case1.adapter;

import com.example.demo.gof6_10._07adapter.case1.adaptee.Adaptee;
import com.example.demo.gof6_10._07adapter.case1.target.Target;

/**
 * 对象适配器类
 *
 * @author meihongliang
 * @since 2020/8/10 16:07
 */
public class ObjectAdapter implements Target {

    /**
     *
     */
    private Adaptee adaptee;

    public ObjectAdapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    /**
     * request
     */
    @Override
    public void request() {
        adaptee.specificRequest();
    }
}
